<template>
  <div id="centerLeft1">
    <div class="bg-color-black">

      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-pie" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xxl text mx-2" style="font-size:25px;margin-bottom:30px">实时运行状态</span>
          <dv-decoration-1 class="dv-dec-1"/>
        </div>
      </div>

      <div class="d-flex jc-center">
        <CenterLeft2Chart :cur-machine="curMachine"/>
      </div>

    </div>
  </div>
</template>

<script>
    import CenterLeft2Chart from "@/components/echart/centerLeft/centerLeft2Chart";

    export default {
        props:{
          curMachine:{
              type: Object,
              required: true,
          }
        },

        components: {
            CenterLeft2Chart
        },
    };
</script>

<style lang="scss" scoped>
  #centerLeft1 {
    $box-width: 600px;
    $box-height: 410px;
    padding: 16px;
    height: $box-height;
    min-width: $box-width;
    border-radius: 5px;

    .bg-color-black {
      height: $box-height - 30px;
      border-radius: 10px;
    }

    .text {
      color: #c3cbde;
    }

    .dv-dec-1 {
      position: relative;
      width: 100px;
      height: 20px;
      top: -3px;
    }

    .chart-box {
      margin-top: 16px;
      width: 170px;
      height: 170px;

      .active-ring-name {
        padding-top: 10px;
      }
    }
  }
</style>
